<?php
class Group_Form_Group_Insert extends Zend_Form
{
	public function __construct(Zend_Controller_Action $controller)
	{
		$group_code = $this->createElement ( 'text', 'group_code' )->setLabel ( "Mã nhóm người dùng" )->setRequired ( true );
		
		$group_name = $this->createElement ( 'text', 'group_name' )->setLabel ( "Tên nhóm người dùng" )->setRequired ( true );
		
		$group_parent_code = $this->createElement ( 'select', 'group_parent_code' )->setLabel ( "Thuộc nhóm người dùng" );
		
		$group_note = $this->createElement ( 'textarea', 'group_note' )->setLabel ( "Ghi chú" );		
	
		$this->addElements ( array (
			$group_username, $group_code, $group_name,$group_parent_code, $group_note 
		) );
		
		$controller->getHelper ( "common" )->form ( $this );
	}
}